package com.ruoyi.edu.service.impl;

import java.util.List;

import com.ruoyi.common.annotation.DataScope;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.edu.mapper.EduAuxcouseMapper;
import com.ruoyi.edu.domain.EduAuxcouse;
import com.ruoyi.edu.service.IEduAuxcouseService;
import com.ruoyi.common.core.text.Convert;

/**
 * 辅导课; InnoDB free: 7168 kBService业务层处理
 * 
 * @author ruoyi
 * @date 2023-05-08
 */
@Service
public class EduAuxcouseServiceImpl implements IEduAuxcouseService 
{
    @Autowired
    private EduAuxcouseMapper eduAuxcouseMapper;

    /**
     * 查询辅导课; InnoDB free: 7168 kB
     * 
     * @param id 辅导课; InnoDB free: 7168 kB主键
     * @return 辅导课; InnoDB free: 7168 kB
     */
    @Override
    public EduAuxcouse selectEduAuxcouseById(Integer id)
    {
        return eduAuxcouseMapper.selectEduAuxcouseById(id);
    }

    /**
     * 查询辅导课; InnoDB free: 7168 kB列表
     * 
     * @param eduAuxcouse 辅导课; InnoDB free: 7168 kB
     * @return 辅导课; InnoDB free: 7168 kB
     */
    @Override
    @DataScope(deptAlias = "d", userAlias = "u")
    public List<EduAuxcouse> selectEduAuxcouseList(EduAuxcouse eduAuxcouse)
    {
        return eduAuxcouseMapper.selectEduAuxcouseList(eduAuxcouse);
    }

    /**
     * 新增辅导课; InnoDB free: 7168 kB
     * 
     * @param eduAuxcouse 辅导课; InnoDB free: 7168 kB
     * @return 结果
     */
    @Override
    public int insertEduAuxcouse(EduAuxcouse eduAuxcouse)
    {
        return eduAuxcouseMapper.insertEduAuxcouse(eduAuxcouse);
    }

    /**
     * 修改辅导课; InnoDB free: 7168 kB
     * 
     * @param eduAuxcouse 辅导课; InnoDB free: 7168 kB
     * @return 结果
     */
    @Override
    public int updateEduAuxcouse(EduAuxcouse eduAuxcouse)
    {
        return eduAuxcouseMapper.updateEduAuxcouse(eduAuxcouse);
    }

    /**
     * 批量删除辅导课; InnoDB free: 7168 kB
     * 
     * @param ids 需要删除的辅导课; InnoDB free: 7168 kB主键
     * @return 结果
     */
    @Override
    public int deleteEduAuxcouseByIds(String ids)
    {
        return eduAuxcouseMapper.deleteEduAuxcouseByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除辅导课; InnoDB free: 7168 kB信息
     * 
     * @param id 辅导课; InnoDB free: 7168 kB主键
     * @return 结果
     */
    @Override
    public int deleteEduAuxcouseById(Integer id)
    {
        return eduAuxcouseMapper.deleteEduAuxcouseById(id);
    }
}
